import request from '../request'

function loginAccount(data) {
	return request.post('/api/account/loginAccount', data, {}, false)
}
function login(data) {
	return request.post('/api/user/login', data, {}, false)
}
function loginByVcode(data) {
	return request.post('/api/user/loginByVcode', data, {}, false)
}

function sendVcode(query) {
	return request.get('/api/user/vcode', query, false)
}

function changePhone(data) {
	return request.post('/api/user/changePhone', data)
}
function changePassword(data) {
	return request.post('/api/user/changePassword', data)
}
function unsubscribe(data) {
	return request.post('/api/user/unsubscribe', data)
}
export default {
	loginAccount,
	login,
	loginByVcode,
	sendVcode,
	changePhone,
	changePassword,
	unsubscribe,
}
